package com_djm_2025_06_05.demo4;

public class Test {

    public static void drawMap(IShape iShape) {
        iShape.draw();
    }

    public static void main(String[] args) {
        drawMap(new Rect());
        drawMap(new Cycle());

        IShape[] iShapes = {new Rect(),new Cycle()};
        IShape iShape = new Cycle();



    }

}
